#include <func.h>
#define SALT_LEN 8
int main(int argc,char *argv[])
{
    char salt[10]={0};
    int i;
    srand(time(0));
    for(i=0;i<SALT_LEN;++i)
    {
        switch(rand()%3){
        case 0:
            salt[i]=rand()%10+'0';
            break;
        case 1:
            salt[i]=rand()%26+'a';
            break;
        case 2:
            salt[i]=rand()%26+'A';
            break;
        }
    }
    printf("%s\n",salt);
    return 0;
}

